package com.example.mybatis.moudle;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * output
 * @author 
 */
@Data
public class Output implements Serializable {
    private Integer outputId;

    /**
     * 金额
     */
    private Double outputCount;

    /**
     * 时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone ="GMT+8" )
    private Date outputDate;

    private String outputKind;

    private String outputMethod;

    private String outputText;

    private static final long serialVersionUID = 1L;

    public Output() {
    }


    public Output(Integer outputId, Double outputCount, Date outputDate, String outputKind, String outputMethod, String outputText) {
        this.outputId = outputId;
        this.outputCount = outputCount;
        this.outputDate = outputDate;
        this.outputKind = outputKind;
        this.outputMethod = outputMethod;
        this.outputText = outputText;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Output other = (Output) that;
        return (this.getOutputId() == null ? other.getOutputId() == null : this.getOutputId().equals(other.getOutputId()))
            && (this.getOutputCount() == null ? other.getOutputCount() == null : this.getOutputCount().equals(other.getOutputCount()))
            && (this.getOutputDate() == null ? other.getOutputDate() == null : this.getOutputDate().equals(other.getOutputDate()))
            && (this.getOutputKind() == null ? other.getOutputKind() == null : this.getOutputKind().equals(other.getOutputKind()))
            && (this.getOutputMethod() == null ? other.getOutputMethod() == null : this.getOutputMethod().equals(other.getOutputMethod()))
            && (this.getOutputText() == null ? other.getOutputText() == null : this.getOutputText().equals(other.getOutputText()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOutputId() == null) ? 0 : getOutputId().hashCode());
        result = prime * result + ((getOutputCount() == null) ? 0 : getOutputCount().hashCode());
        result = prime * result + ((getOutputDate() == null) ? 0 : getOutputDate().hashCode());
        result = prime * result + ((getOutputKind() == null) ? 0 : getOutputKind().hashCode());
        result = prime * result + ((getOutputMethod() == null) ? 0 : getOutputMethod().hashCode());
        result = prime * result + ((getOutputText() == null) ? 0 : getOutputText().hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "Output{" +
                "outputId=" + outputId +
                ", outputCount=" + outputCount +
                ", outputDate=" + outputDate +
                ", outputKind='" + outputKind + '\'' +
                ", outputMethod='" + outputMethod + '\'' +
                ", outputText='" + outputText + '\'' +
                '}';
    }
}